package org.platform.service.system;

import org.platform.mo.csmo.cmd31005.LoginRequestParam;
import org.platform.mo.csmo.cmd31005.LoginResponseParam;
import org.platform.service.IBaseService;
import org.springframework.stereotype.Service;

/**
 * 登录
 *
 * @author FengJie
 * @date 2018/4/23
 */
@Service
public class LoginServiceImpl implements IBaseService {
    public LoginResponseParam login(LoginRequestParam requestParam) {
        LoginResponseParam responseParam = new LoginResponseParam();
        String userName = requestParam.getUserName();
        String passWord = requestParam.getPassWord();
        if (null != userName && null != passWord) {
            responseParam.setLoginStatus(true);
        } else {
            responseParam.setLoginStatus(false);
        }
        return responseParam;
    }
}
